typedef int d_word;
typedef short int word;
typedef d_word reg_t;
typedef short int state_t;
typedef short int iproc_t;
typedef short int ith_t;
typedef short int prior_t;
typedef short int bil_t;
#define SUCCESS 1
#define FAIL -1
#define BLOCKED -1
#define READY 0
#define WORKING 1

#define MAX_K_TH 32
#define MAX_U_TH 32
#define MAX_PROC 32

#define MAX_BIL 45
#define MAX_BIL_TOTAL 45
